import axios from './axios'

// 获取临时表数据
export function barcodeWashPrint(){
  return axios({
    url:'/barcode-wash-print/barcodeWashPrint'
  })
}

// 打印吊牌或洗唛1-列印吊牌
export function washPrintLinePrint(params){
  return axios({
    method: 'put',
    url:'/barcode-wash-print/barcodeWashPrintLinePrint',
    params
  })
}

// 清除缓存中的添加数据 
export function removeRedis(){
  return axios({
    method: 'post',
    url:'/barcode-wash-print/barcodeWashPrintRemoveRedis'
  })
}

// 条码机参数设置数据
export function getPrinterParameter(params){
  return axios({
    url:'/barcode-printer-parameter/barcodePrinterParameter',
    params
  })
}

// 条码机参数设置-修改按钮
export function postPrinterParameter(params){
  return axios({
    method: 'post',
    url:'/barcode-printer-parameter/barcodePrinterParameter',
    params
  })
}

//用添加的数据获取打印数据
export function getWashdata(params){
  return axios({
    url:'/barcode-wash-print/barcodeWashPrint',
    params
  })
}

//根据货号生成RFID
export function getRfid(data){
  return axios({
    method:'post',
    url:'/barcode-wash-print/buildRfid',
    data
  })
}

//货号换标
export function changeBID(params){
  return axios({
    method:'put',
    url:'/barcode-wash-print/numberChange',
    params
  })
}

//打印后给后台传输数量
export function sendNum(data){
  return axios({
    method:'put',
    url:'/barcode-wash-print/barcodeWashPrintLinePrint',
    data
  })
}